package com.itheima.lx;

public class CatTest {
    public static void main(String[] args) {
        //无参
        Cat cat=new Cat();
        cat.setBreed("波斯猫");
        cat.setColor("蓝色");
        System.out.println(cat.getBreed());
        System.out.println(cat.getColor());
        //全参
        Cat cat2=new Cat("蓝色","加菲猫");
        System.out.println(cat2.getColor());
        System.out.println(cat2.getBreed());

    }
}
